import request from '@/utils/request'

// 查询提现明细列表
export function listUserWithdraw(query) {
  return request({
    url: '/user/userWithdraw/list',
    method: 'get',
    params: query
  })
}

// 查询提现明细详细
export function getUserWithdraw(id) {
  return request({
    url: '/user/userWithdraw/' + id,
    method: 'get'
  })
}

// 新增提现明细
export function addUserWithdraw(data) {
  return request({
    url: '/user/userWithdraw',
    method: 'post',
    data: data
  })
}

// 修改提现明细
export function updateUserWithdraw(data) {
  return request({
    url: '/user/userWithdraw/withdrawalHandle',
    method: 'post',
    data: data
  })
}

// 删除提现明细
export function delUserWithdraw(id) {
  return request({
    url: '/user/userWithdraw/' + id,
    method: 'delete'
  })
}
